From: Florian Müllner Date: Wed, 1 Jul 2020 14:44:16 +0000 (+0200) Subject: endSessionDialog: Reindent dialog configs X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~56 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=72a8522a103f78243902cce6b8b2277d39a18e43;p=gnome-shell.git endSessionDialog: Reindent dialog configs We are about to make some changes, so make them conform to the new indentation style first. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2202 --- diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js index b3c6344e8..b1a36d8cd 100644 --- a/js/ui/endSessionDialog.js +++ b/js/ui/endSessionDialog.js @@ -37,18 +37,22 @@ const logoutDialogContent = { subjectWithUser: C_("title", "Log Out %s"), subject: C_("title", "Log Out"), descriptionWithUser(user, seconds) { - return ngettext("%s will be logged out automatically in %d second.", - "%s will be logged out automatically in %d seconds.", - seconds).format(user, seconds); + return ngettext( + '%s will be logged out automatically in %d second.', + '%s will be logged out automatically in %d seconds.', + seconds).format(user, seconds); }, description(seconds) { - return ngettext("You will be logged out automatically in %d second.", - "You will be logged out automatically in %d seconds.", - seconds).format(seconds); + return ngettext( + 'You will be logged out automatically in %d second.', + 'You will be logged out automatically in %d seconds.', + seconds).format(seconds); }, showBatteryWarning: false, - confirmButtons: [{ signal: 'ConfirmedLogout', - label: C_("button", "Log Out") }], + confirmButtons: [{ + signal: 'ConfirmedLogout', + label: C_('button', 'Log Out'), + }], showOtherSessions: false, }; @@ -56,16 +60,20 @@ const shutdownDialogContent = { subject: C_("title", "Power Off"), subjectWithUpdates: C_("title", "Install Updates & Power Off"), description(seconds) { - return ngettext("The system will power off automatically in %d second.", - "The system will power off automatically in %d seconds.", - seconds).format(seconds); + return ngettext( + 'The system will power off automatically in %d second.', + 'The system will power off automatically in %d seconds.', + seconds).format(seconds); }, checkBoxText: C_("checkbox", "Install pending software updates"), showBatteryWarning: true, - confirmButtons: [{ signal: 'ConfirmedReboot', - label: C_("button", "Restart") }, - { signal: 'ConfirmedShutdown', - label: C_("button", "Power Off") }], + confirmButtons: [{ + signal: 'ConfirmedReboot', + label: C_('button", "Restart'), + }, { + signal: 'ConfirmedShutdown', + label: C_('button', 'Power Off'), + }], iconName: 'system-shutdown-symbolic', showOtherSessions: true, }; @@ -73,13 +81,16 @@ const shutdownDialogContent = { const restartDialogContent = { subject: C_("title", "Restart"), description(seconds) { - return ngettext("The system will restart automatically in %d second.", - "The system will restart automatically in %d seconds.", - seconds).format(seconds); + return ngettext( + 'The system will restart automatically in %d second.', + 'The system will restart automatically in %d seconds.', + seconds).format(seconds); }, showBatteryWarning: false, - confirmButtons: [{ signal: 'ConfirmedReboot', - label: C_("button", "Restart") }], + confirmButtons: [{ + signal: 'ConfirmedReboot', + label: C_('button', 'Restart'), + }], iconName: 'view-refresh-symbolic', showOtherSessions: true, }; @@ -88,13 +99,16 @@ const restartUpdateDialogContent = { subject: C_("title", "Restart & Install Updates"), description(seconds) { - return ngettext("The system will automatically restart and install updates in %d second.", - "The system will automatically restart and install updates in %d seconds.", - seconds).format(seconds); + return ngettext( + 'The system will automatically restart and install updates in %d second.', + 'The system will automatically restart and install updates in %d seconds.', + seconds).format(seconds); }, showBatteryWarning: true, - confirmButtons: [{ signal: 'ConfirmedReboot', - label: C_("button", "Restart & Install") }], + confirmButtons: [{ + signal: 'ConfirmedReboot', + label: C_('button', 'Restart & Install'), + }], unusedFutureButtonForTranslation: C_("button", "Install & Power Off"), unusedFutureCheckBoxForTranslation: C_("checkbox", "Power off after updates are installed"), iconName: 'view-refresh-symbolic', @@ -112,8 +126,10 @@ const restartUpgradeDialogContent = { }, disableTimer: true, showBatteryWarning: false, - confirmButtons: [{ signal: 'ConfirmedReboot', - label: C_("button", "Restart & Install") }], + confirmButtons: [{ + signal: 'ConfirmedReboot', + label: C_('button', 'Restart & Install'), + }], iconName: 'view-refresh-symbolic', showOtherSessions: true, };